package hhf.flex.soundapi.core.chunks {
	import flash.utils.ByteArray;
	import flash.utils.Endian;

	public class ListChunk {
		public var infoChunk:InfoChunk;
		public function ListChunk(data:ByteArray)	{
			var chunktype:String = data.readMultiByte(4, "utf-8");
			if(chunktype=="INFO") {
				var chunk:ByteArray = new ByteArray();
				chunk.endian = Endian.LITTLE_ENDIAN;
				data.readBytes(chunk, 0, data.bytesAvailable);
				infoChunk = new InfoChunk(chunk);
			}
		}
	}
}